<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>QJoysticks: QJoysticks.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="icon.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">QJoysticks
   </div>
   <div id="projectbrief">A simple way to use joysticks with your Qt application</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">QJoysticks.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;<span class="comment">/*</span></div><div class="line"><a name="l00002"></a><span class="lineno">    2</span>&#160;<span class="comment"> * Copyright (c) 2015-2016 Alex Spataru &lt;alex_spataru@outlook.com&gt;</span></div><div class="line"><a name="l00003"></a><span class="lineno">    3</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00004"></a><span class="lineno">    4</span>&#160;<span class="comment"> * Permission is hereby granted, free of charge, to any person obtaining a copy</span></div><div class="line"><a name="l00005"></a><span class="lineno">    5</span>&#160;<span class="comment"> * of this software and associated documentation files (the &quot;Software&quot;), to deal</span></div><div class="line"><a name="l00006"></a><span class="lineno">    6</span>&#160;<span class="comment"> * in the Software without restriction, including without limitation the rights</span></div><div class="line"><a name="l00007"></a><span class="lineno">    7</span>&#160;<span class="comment"> * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell</span></div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="comment"> * copies of the Software, and to permit persons to whom the Software is</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="comment"> * furnished to do so, subject to the following conditions:</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment"> * The above copyright notice and this permission notice shall be included in</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment"> * all copies or substantial portions of the Software.</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment"> *</span></div><div class="line"><a name="l00014"></a><span class="lineno">   14</span>&#160;<span class="comment"> * THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR</span></div><div class="line"><a name="l00015"></a><span class="lineno">   15</span>&#160;<span class="comment"> * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,</span></div><div class="line"><a name="l00016"></a><span class="lineno">   16</span>&#160;<span class="comment"> * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE</span></div><div class="line"><a name="l00017"></a><span class="lineno">   17</span>&#160;<span class="comment"> * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;<span class="comment"> * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,</span></div><div class="line"><a name="l00019"></a><span class="lineno">   19</span>&#160;<span class="comment"> * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN</span></div><div class="line"><a name="l00020"></a><span class="lineno">   20</span>&#160;<span class="comment"> * THE SOFTWARE.</span></div><div class="line"><a name="l00021"></a><span class="lineno">   21</span>&#160;<span class="comment"> */</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef _QJOYSTICKS_MAIN_H</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define _QJOYSTICKS_MAIN_H</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &lt;QObject&gt;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &lt;QStringList&gt;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;<span class="preprocessor">#include &lt;QJoysticks/JoysticksCommon.h&gt;</span></div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;</div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;<span class="keyword">class </span>QSettings;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="keyword">class </span><a class="code" href="class_s_d_l___joysticks.html">SDL_Joysticks</a>;</div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="keyword">class </span><a class="code" href="class_virtual_joystick.html">VirtualJoystick</a>;</div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="class_q_joysticks.html">   51</a></span>&#160;<span class="keyword">class </span><a class="code" href="class_q_joysticks.html">QJoysticks</a> : <span class="keyword">public</span> QObject {</div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;    Q_OBJECT</div><div class="line"><a name="l00053"></a><span class="lineno">   53</span>&#160;    <span class="keyword">friend</span> <span class="keyword">class </span>Test_QJoysticks;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  signals:</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;    <span class="keywordtype">void</span> countChanged();</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;    <span class="keywordtype">void</span> POVEvent (<span class="keyword">const</span> <a class="code" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a>&amp; event);</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;    <span class="keywordtype">void</span> axisEvent (<span class="keyword">const</span> <a class="code" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a>&amp; event);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;    <span class="keywordtype">void</span> buttonEvent (<span class="keyword">const</span> <a class="code" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a>&amp; event);</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;    <span class="keywordtype">void</span> povChanged (<span class="keyword">const</span> <span class="keywordtype">int</span> js, <span class="keyword">const</span> <span class="keywordtype">int</span> pov, <span class="keyword">const</span> <span class="keywordtype">int</span> angle);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;    <span class="keywordtype">void</span> axisChanged (<span class="keyword">const</span> <span class="keywordtype">int</span> js, <span class="keyword">const</span> <span class="keywordtype">int</span> axis, <span class="keyword">const</span> qreal value);</div><div class="line"><a name="l00062"></a><span class="lineno">   62</span>&#160;    <span class="keywordtype">void</span> buttonChanged (<span class="keyword">const</span> <span class="keywordtype">int</span> js, <span class="keyword">const</span> <span class="keywordtype">int</span> button, <span class="keyword">const</span> <span class="keywordtype">bool</span> pressed);</div><div class="line"><a name="l00063"></a><span class="lineno">   63</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno">   64</span>&#160;  <span class="keyword">public</span>:</div><div class="line"><a name="l00065"></a><span class="lineno">   65</span>&#160;    <span class="keyword">static</span> <a class="code" href="class_q_joysticks.html">QJoysticks</a>* <a class="code" href="class_q_joysticks.html#acf3d2acd60f9483dbb273f07346fe23d">getInstance</a>();</div><div class="line"><a name="l00066"></a><span class="lineno">   66</span>&#160;</div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;    Q_INVOKABLE <span class="keywordtype">int</span> <a class="code" href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">count</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00068"></a><span class="lineno">   68</span>&#160;    Q_INVOKABLE <span class="keywordtype">int</span> <a class="code" href="class_q_joysticks.html#ad2bf7d64347d6d65f16f7c7023c73561">nonBlacklistedCount</a>();</div><div class="line"><a name="l00069"></a><span class="lineno">   69</span>&#160;    Q_INVOKABLE <span class="keywordtype">int</span> <a class="code" href="class_q_joysticks.html#a658bfc83e9be280e4fcc75c9d94a91ee">getNumAxes</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;    Q_INVOKABLE <span class="keywordtype">int</span> <a class="code" href="class_q_joysticks.html#a9ea024f5dd5cee034c2587cdc0d1122e">getNumPOVs</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;    Q_INVOKABLE <span class="keywordtype">int</span> <a class="code" href="class_q_joysticks.html#a41ccd0b85131b7dd7d586aac276ed33f">getNumButtons</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;    Q_INVOKABLE <span class="keywordtype">bool</span> <a class="code" href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">isBlacklisted</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;    Q_INVOKABLE <span class="keywordtype">bool</span> <a class="code" href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">joystickExists</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;    Q_INVOKABLE QString <a class="code" href="class_q_joysticks.html#a7224c53f49ffa9121014c71e45efa57c">getName</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00075"></a><span class="lineno">   75</span>&#160;</div><div class="line"><a name="l00076"></a><span class="lineno">   76</span>&#160;    Q_INVOKABLE QStringList <a class="code" href="class_q_joysticks.html#a6690f2ee26d4018e5514af31f4050be7">deviceNames</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00077"></a><span class="lineno">   77</span>&#160;    QList&lt;QJoystickDevice*&gt; <a class="code" href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">inputDevices</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;</div><div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;    <a class="code" href="class_s_d_l___joysticks.html">SDL_Joysticks</a>* <a class="code" href="class_q_joysticks.html#ae9ced0a1c30ad2f04b4244a2c1a2e3f9">sdlJoysticks</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;    <a class="code" href="class_virtual_joystick.html">VirtualJoystick</a>* <a class="code" href="class_q_joysticks.html#ae673f2c42ee10f32b7ef09f9c06cc98e">virtualJoystick</a>() <span class="keyword">const</span>;</div><div class="line"><a name="l00081"></a><span class="lineno">   81</span>&#160;    <a class="code" href="struct_q_joystick_device.html">QJoystickDevice</a>* <a class="code" href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">getInputDevice</a> (<span class="keywordtype">int</span> index);</div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;  <span class="keyword">public</span> slots:</div><div class="line"><a name="l00084"></a><span class="lineno">   84</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">updateInterfaces</a>();</div><div class="line"><a name="l00085"></a><span class="lineno">   85</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a91abd059fcfbc3384a078bf730f477fe">setVirtualJoystickRange</a> (qreal range);</div><div class="line"><a name="l00086"></a><span class="lineno">   86</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a9aa53b1761048c15398be369cd229b7e">setVirtualJoystickEnabled</a> (<span class="keywordtype">bool</span> enabled);</div><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a7397c0561724a81fd67f22fa05ef93b2">setSortJoysticksByBlacklistState</a> (<span class="keywordtype">bool</span> sort);</div><div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">setBlacklisted</a> (<span class="keywordtype">int</span> index, <span class="keywordtype">bool</span> blacklisted);</div><div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;</div><div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160;  <span class="keyword">protected</span>:</div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    <span class="keyword">explicit</span> <a class="code" href="class_q_joysticks.html">QJoysticks</a>();</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;    ~<a class="code" href="class_q_joysticks.html">QJoysticks</a>();</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;  <span class="keyword">private</span> slots:</div><div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a214d5d5f7cbb20f942d8d38c40aa80c4">resetJoysticks</a>();</div><div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a96a3982db3ee4399087d8746fa385df8">addInputDevice</a> (<a class="code" href="struct_q_joystick_device.html">QJoystickDevice</a>* device);</div><div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a046d4f6534272ef9b162b68ca55991f6">onPOVEvent</a> (<span class="keyword">const</span> <a class="code" href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a>&amp; event);</div><div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#ad27dc9901db82add491eec3872ad37a9">onAxisEvent</a> (<span class="keyword">const</span> <a class="code" href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a>&amp; event);</div><div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;    <span class="keywordtype">void</span> <a class="code" href="class_q_joysticks.html#a62f0ad5ad129f17dc04fa7c887f05094">onButtonEvent</a> (<span class="keyword">const</span> <a class="code" href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a>&amp; event);</div><div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;</div><div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;  <span class="keyword">private</span>:</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordtype">bool</span> m_sortJoyticks;</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;    QSettings* m_settings;</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;    <a class="code" href="class_s_d_l___joysticks.html">SDL_Joysticks</a>* m_sdlJoysticks;</div><div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;    <a class="code" href="class_virtual_joystick.html">VirtualJoystick</a>* m_virtualJoystick;</div><div class="line"><a name="l00107"></a><span class="lineno">  107</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno">  108</span>&#160;    QList&lt;QJoystickDevice*&gt; m_devices;</div><div class="line"><a name="l00109"></a><span class="lineno">  109</span>&#160;};</div><div class="line"><a name="l00110"></a><span class="lineno">  110</span>&#160;</div><div class="line"><a name="l00111"></a><span class="lineno">  111</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="class_virtual_joystick_html"><div class="ttname"><a href="class_virtual_joystick.html">VirtualJoystick</a></div><div class="ttdoc">Translates keyboard input to joystick input. </div><div class="ttdef"><b>Definition:</b> VirtualJoystick.h:37</div></div>
<div class="ttc" id="class_q_joysticks_html_a214d5d5f7cbb20f942d8d38c40aa80c4"><div class="ttname"><a href="class_q_joysticks.html#a214d5d5f7cbb20f942d8d38c40aa80c4">QJoysticks::resetJoysticks</a></div><div class="ttdeci">void resetJoysticks()</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:357</div></div>
<div class="ttc" id="class_q_joysticks_html_a9aa53b1761048c15398be369cd229b7e"><div class="ttname"><a href="class_q_joysticks.html#a9aa53b1761048c15398be369cd229b7e">QJoysticks::setVirtualJoystickEnabled</a></div><div class="ttdeci">void setVirtualJoystickEnabled(bool enabled)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:350</div></div>
<div class="ttc" id="class_q_joysticks_html_a7397c0561724a81fd67f22fa05ef93b2"><div class="ttname"><a href="class_q_joysticks.html#a7397c0561724a81fd67f22fa05ef93b2">QJoysticks::setSortJoysticksByBlacklistState</a></div><div class="ttdeci">void setSortJoysticksByBlacklistState(bool sort)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:231</div></div>
<div class="ttc" id="struct_q_joystick_button_event_html"><div class="ttname"><a href="struct_q_joystick_button_event.html">QJoystickButtonEvent</a></div><div class="ttdoc">Represents a button event that can be triggered by a joystick. </div><div class="ttdef"><b>Definition:</b> JoysticksCommon.h:98</div></div>
<div class="ttc" id="class_q_joysticks_html_a7e0f11b27ec83fbed6e7c65578edfcfb"><div class="ttname"><a href="class_q_joysticks.html#a7e0f11b27ec83fbed6e7c65578edfcfb">QJoysticks::joystickExists</a></div><div class="ttdeci">Q_INVOKABLE bool joystickExists(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:158</div></div>
<div class="ttc" id="class_q_joysticks_html_a416555f9b0822557a0a98fbaf51002f3"><div class="ttname"><a href="class_q_joysticks.html#a416555f9b0822557a0a98fbaf51002f3">QJoysticks::getInputDevice</a></div><div class="ttdeci">QJoystickDevice * getInputDevice(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:220</div></div>
<div class="ttc" id="struct_q_joystick_p_o_v_event_html"><div class="ttname"><a href="struct_q_joystick_p_o_v_event.html">QJoystickPOVEvent</a></div><div class="ttdoc">Represents an POV event that can be triggered by a joystick. </div><div class="ttdef"><b>Definition:</b> JoysticksCommon.h:70</div></div>
<div class="ttc" id="class_q_joysticks_html_a91abd059fcfbc3384a078bf730f477fe"><div class="ttname"><a href="class_q_joysticks.html#a91abd059fcfbc3384a078bf730f477fe">QJoysticks::setVirtualJoystickRange</a></div><div class="ttdeci">void setVirtualJoystickRange(qreal range)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:343</div></div>
<div class="ttc" id="class_q_joysticks_html_ae9ced0a1c30ad2f04b4244a2c1a2e3f9"><div class="ttname"><a href="class_q_joysticks.html#ae9ced0a1c30ad2f04b4244a2c1a2e3f9">QJoysticks::sdlJoysticks</a></div><div class="ttdeci">SDL_Joysticks * sdlJoysticks() const </div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:201</div></div>
<div class="ttc" id="class_s_d_l___joysticks_html"><div class="ttname"><a href="class_s_d_l___joysticks.html">SDL_Joysticks</a></div><div class="ttdoc">Translates SDL events into QJoysticks events. </div><div class="ttdef"><b>Definition:</b> SDL_Joysticks.h:42</div></div>
<div class="ttc" id="class_q_joysticks_html_ad2bf7d64347d6d65f16f7c7023c73561"><div class="ttname"><a href="class_q_joysticks.html#ad2bf7d64347d6d65f16f7c7023c73561">QJoysticks::nonBlacklistedCount</a></div><div class="ttdeci">Q_INVOKABLE int nonBlacklistedCount()</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:96</div></div>
<div class="ttc" id="class_q_joysticks_html_a6690f2ee26d4018e5514af31f4050be7"><div class="ttname"><a href="class_q_joysticks.html#a6690f2ee26d4018e5514af31f4050be7">QJoysticks::deviceNames</a></div><div class="ttdeci">Q_INVOKABLE QStringList deviceNames() const </div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:178</div></div>
<div class="ttc" id="class_q_joysticks_html_a31a59adc5932ea23a3582b0f6e481ec7"><div class="ttname"><a href="class_q_joysticks.html#a31a59adc5932ea23a3582b0f6e481ec7">QJoysticks::isBlacklisted</a></div><div class="ttdeci">Q_INVOKABLE bool isBlacklisted(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:147</div></div>
<div class="ttc" id="class_q_joysticks_html_a2e4c5c211ce2cd2b82f2066d720127a4"><div class="ttname"><a href="class_q_joysticks.html#a2e4c5c211ce2cd2b82f2066d720127a4">QJoysticks::inputDevices</a></div><div class="ttdeci">QList&lt; QJoystickDevice * &gt; inputDevices() const </div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:192</div></div>
<div class="ttc" id="class_q_joysticks_html_a658bfc83e9be280e4fcc75c9d94a91ee"><div class="ttname"><a href="class_q_joysticks.html#a658bfc83e9be280e4fcc75c9d94a91ee">QJoysticks::getNumAxes</a></div><div class="ttdeci">Q_INVOKABLE int getNumAxes(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:111</div></div>
<div class="ttc" id="struct_q_joystick_device_html"><div class="ttname"><a href="struct_q_joystick_device.html">QJoystickDevice</a></div><div class="ttdoc">Represents a joystick and its properties. </div><div class="ttdef"><b>Definition:</b> JoysticksCommon.h:39</div></div>
<div class="ttc" id="class_q_joysticks_html_a046d4f6534272ef9b162b68ca55991f6"><div class="ttname"><a href="class_q_joysticks.html#a046d4f6534272ef9b162b68ca55991f6">QJoysticks::onPOVEvent</a></div><div class="ttdeci">void onPOVEvent(const QJoystickPOVEvent &amp;event)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:374</div></div>
<div class="ttc" id="class_q_joysticks_html_ad27dc9901db82add491eec3872ad37a9"><div class="ttname"><a href="class_q_joysticks.html#ad27dc9901db82add491eec3872ad37a9">QJoysticks::onAxisEvent</a></div><div class="ttdeci">void onAxisEvent(const QJoystickAxisEvent &amp;event)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:383</div></div>
<div class="ttc" id="class_q_joysticks_html_abe46b8b32979a847b97866fb5d51529c"><div class="ttname"><a href="class_q_joysticks.html#abe46b8b32979a847b97866fb5d51529c">QJoysticks::setBlacklisted</a></div><div class="ttdeci">void setBlacklisted(int index, bool blacklisted)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:244</div></div>
<div class="ttc" id="class_q_joysticks_html"><div class="ttname"><a href="class_q_joysticks.html">QJoysticks</a></div><div class="ttdoc">Manages the input systems and communicates them with the application. </div><div class="ttdef"><b>Definition:</b> QJoysticks.h:51</div></div>
<div class="ttc" id="class_q_joysticks_html_ae673f2c42ee10f32b7ef09f9c06cc98e"><div class="ttname"><a href="class_q_joysticks.html#ae673f2c42ee10f32b7ef09f9c06cc98e">QJoysticks::virtualJoystick</a></div><div class="ttdeci">VirtualJoystick * virtualJoystick() const </div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:213</div></div>
<div class="ttc" id="class_q_joysticks_html_a41ccd0b85131b7dd7d586aac276ed33f"><div class="ttname"><a href="class_q_joysticks.html#a41ccd0b85131b7dd7d586aac276ed33f">QJoysticks::getNumButtons</a></div><div class="ttdeci">Q_INVOKABLE int getNumButtons(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:135</div></div>
<div class="ttc" id="class_q_joysticks_html_a7224c53f49ffa9121014c71e45efa57c"><div class="ttname"><a href="class_q_joysticks.html#a7224c53f49ffa9121014c71e45efa57c">QJoysticks::getName</a></div><div class="ttdeci">Q_INVOKABLE QString getName(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:165</div></div>
<div class="ttc" id="class_q_joysticks_html_a62f0ad5ad129f17dc04fa7c887f05094"><div class="ttname"><a href="class_q_joysticks.html#a62f0ad5ad129f17dc04fa7c887f05094">QJoysticks::onButtonEvent</a></div><div class="ttdeci">void onButtonEvent(const QJoystickButtonEvent &amp;event)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:392</div></div>
<div class="ttc" id="class_q_joysticks_html_ad46540bb96c23bef9dfc6284aee6e180"><div class="ttname"><a href="class_q_joysticks.html#ad46540bb96c23bef9dfc6284aee6e180">QJoysticks::updateInterfaces</a></div><div class="ttdeci">void updateInterfaces()</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:274</div></div>
<div class="ttc" id="class_q_joysticks_html_acf3d2acd60f9483dbb273f07346fe23d"><div class="ttname"><a href="class_q_joysticks.html#acf3d2acd60f9483dbb273f07346fe23d">QJoysticks::getInstance</a></div><div class="ttdeci">static QJoysticks * getInstance()</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:77</div></div>
<div class="ttc" id="class_q_joysticks_html_a96a3982db3ee4399087d8746fa385df8"><div class="ttname"><a href="class_q_joysticks.html#a96a3982db3ee4399087d8746fa385df8">QJoysticks::addInputDevice</a></div><div class="ttdeci">void addInputDevice(QJoystickDevice *device)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:365</div></div>
<div class="ttc" id="class_q_joysticks_html_ae08141261c71240a1497a29fb9fb1a9b"><div class="ttname"><a href="class_q_joysticks.html#ae08141261c71240a1497a29fb9fb1a9b">QJoysticks::count</a></div><div class="ttdeci">Q_INVOKABLE int count() const </div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:88</div></div>
<div class="ttc" id="class_q_joysticks_html_a9ea024f5dd5cee034c2587cdc0d1122e"><div class="ttname"><a href="class_q_joysticks.html#a9ea024f5dd5cee034c2587cdc0d1122e">QJoysticks::getNumPOVs</a></div><div class="ttdeci">Q_INVOKABLE int getNumPOVs(int index)</div><div class="ttdef"><b>Definition:</b> QJoysticks.cpp:123</div></div>
<div class="ttc" id="struct_q_joystick_axis_event_html"><div class="ttname"><a href="struct_q_joystick_axis_event.html">QJoystickAxisEvent</a></div><div class="ttdoc">Represents an axis event that can be triggered by a joystick. </div><div class="ttdef"><b>Definition:</b> JoysticksCommon.h:84</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.11
</small></address>
</body>
</html>
